package lab01;

/**
 * Created by 林云志 on 2017/10/13.
 */
public class Test11 {
    public static void main(String[] args) {
        int n = 2;
        int sum = 0;
        for (n = 2 ; n <= 100 ; n++){
            int i = 1 ;
            for (int j = 2 ; j < n ; j++ ){
                if (n%j ==0){
                    i = 0;
                    break;
                }
            }
            if (i ==1){
                System.out.print(n+"  ");
                sum+=1;
                if (sum%5==0){
                    System.out.println();
                }
            }
        }
    }
}
